<?php
	$this->headScript()->appendFile(HTTP_HOST.'/js/site-manager/news.js');
	$this->headScript()->appendFile(HTTP_HOST.'/js/jQuery/_redactered_ckeditor/ckeditor.js');
	$this->headScript()->appendFile(HTTP_HOST.'/js/jQuery/_redactered_ckeditor/sample.js');
	$this->headScript()->appendFile(HTTP_HOST.'/js/jQuery/_redactered_ckeditor/sample.css');
?>

<input type="hidden" name="id" value="<?=$this->news['ID']?>" />
<?php $i = 1;?>
<table id="add_cat_table" style="width: 813px !important">
	<tr class="head">
		<td colspan="2"><?=$this->news['ID'] == 0 ? $this->translate('Добавить новость') : $this->translate('Редактировать новость')?></td>
	</tr>
	<tr <?=(is_int($i/2))?"class='dark_tr1'":"class='white_tr1'"; $i++; ?>>
		<td class="field_name"><?=$this->translate('Заголовок страницы')?>: </td>
		<td><input type="text" name="Title" value='<?=htmlentities(stripslashes($this->news['Title']), ENT_QUOTES, 'utf-8')?>' maxlength="255"/></td>
	</tr>
	<tr <?=(is_int($i/2))?"class='dark_tr1'":"class='white_tr1'"; $i++; ?>>
		<td colspan="2" class="field_name" style="border-right: 1px solid #FAFAFA;"><textarea id="Content" name="Content"><?=$this->news['Content']; ?></textarea></td>
		<script type="text/javascript">
			//<![CDATA[
				CKEDITOR.replace( 'Content',{
				});
			//]]>
		</script>
	</tr>
	<tr <?=(is_int($i/2))?"class='dark_tr1'":"class='white_tr1'"; $i++; ?>>	
		<td class="field_name"><?=$this->translate('Активная')?>: </td>
		<td>
			<input type="checkbox" name="active"<?=$this->news['active'] == 1 ? ' checked="checked"' : ''?>/>
		</td>
	</tr>
	<tr <?=(is_int($i/2))?"class='dark_tr1'":"class='white_tr1'"; $i++; ?>>
		<td class="field_name"><?=$this->translate('SEO Title')?>: </td>
		<td><textarea name="seoTitle"><?=$this->news['seoTitle']?></textarea></td>
	</tr>
	<tr <?=(is_int($i/2))?"class='dark_tr1'":"class='white_tr1'"; $i++; ?>>
		<td class="field_name"><?=$this->translate('SEO Keywords')?>: </td>
		<td><textarea name="seoKeywords"><?=$this->news['seoKeywords']?></textarea></td>
	</tr>
	<tr <?=(is_int($i/2))?"class='dark_tr1'":"class='white_tr1'"; $i++; ?>>
		<td class="field_name"><?=$this->translate('SEO Description')?>: </td>
		<td><textarea name="seoDescription"><?=$this->news['seoDescription']?></textarea></td>
	</tr>
	<tr class='add_teble_footer'>
		<td colspan="2" align="right">
			<input type="button" value="<?=$this->translate('Сохранить')?>" onclick="saveNews();" />
		</td>
	</tr>
</table>
<div id="table_shadow"></div>